//! Implementation of class Circle
/*!
\file Circle.cpp
\author Andreas Lehner
\date 13.11.2012
*/

#include "Circle.h"

static const std::string l_bracket = "<";
static const std::string r_bracket = ">";
static const std::string apostrophe = "\"";
static const std::string circle = "circle";
static const std::string cx = "cx=";
static const std::string cy = "cy=";
static const std::string radius = "r=";
static const std::string stroke = "stroke=";
static const std::string slash = "/";

void Circle::WriteShape(std::ostream & stream){
	stream << l_bracket << circle << " " << cx << apostrophe << mX << apostrophe << " ";
	stream << cy << apostrophe << mY << apostrophe << " " << radius << apostrophe << mRadius << apostrophe << " ";
	stream << stroke << apostrophe << mColor << apostrophe << " ";
	DoWrite(stream);
	stream << slash << r_bracket << std::endl;
}